wayland: Destroy the offer on gdk_drop_finish()
authorBenjamin Otte <otte@redhat.com>
Sun, 16 Feb 2020 13:14:27 +0000 (14:14 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Feb 2020 19:10:30 +0000 (20:10 +0100)
Otherwise the compositor won't be aware the dnd failed and will in turn
not notify the drag source.

gdk/wayland/gdkdrop-wayland.c

index a638b6314f6e52798e5813af17b99b4ed363c5c0..f9ed7de123f65db1d11904d0145fac362fe88264 100644 (file)
@@ -177,6 +177,8 @@ gdk_wayland_drop_finish (GdkDrop       *drop,
           WL_DATA_OFFER_FINISH_SINCE_VERSION)
         wl_data_offer_finish (wayland_drop->offer);
     }
+
+  g_clear_pointer (&wayland_drop->offer, wl_data_offer_destroy);
 }
 
 static void